export function regMobile(value) {
  let re = /^1[3,4,5,6,7,8,9][0-9]{9}$/,
    result = re.test(value);
  if (!result) {
    return false;
  }
  return true;
}

export function regEmail(value) {
  let re =
      /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
    result = re.test(value);
  if (!result) {
    return false;
  }
  return true;
}
